#@layout()

#define main()
<!-- 内容容器 -->
<div class="e-panel">
    <div class="e-panel">
        <div class="e-panel-right">
            <a href="/user/add" class="layui-btn">新增用户</a>
        </div>
    </div>
    <div class="layui-form layui-form-pane" style="display:block;">
        <table class="layui-table" lay-skin="line">
            <colgroup>
                <col width="300">
                <col>
                <col width="50">
            </colgroup>
            <thead>
            <tr>
                <th>姓名</th>
                <th>邮箱</th>
                <th></th>
            </tr>
            </thead>
            <tbody>
            #for(x : userPage.list)
                <tr>
                    <td>#(x.name)</td>
                    <td>#(x.email)</td>
                    <th><a href="/user/del?id=#(x.id)" class="layui-btn layui-btn-small"><i class="layui-icon"></i></a></th>
                </tr>
            #end

            </tbody>
        </table>
    </div>
    <div>
        <!-- 分页 -->
        #@paginate(userPage.pageNumber, userPage.totalPage, "/user?p=")
    </div>
</div>
#end

#define css()
#end

#define js()
#end
